#!/bin/sh


funa()
{
   echo "in funa"
}

a=$(funa)
echo $a

A1=(A B C D)
A2=(E F G H)

echo ${A1[1]} ${A1[2]}
echo $A2

for((i=0; i<${#A1[*]}; i++))
do
  echo ${A1[i]} - ${A2[i]} 
done

